package com.label.entity;

import java.time.LocalDate;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.github.dreamyoung.mprelation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author Jianhua
 * @since 2022-03-27
 */
@Data

// 不需要手动触发加载延迟属性，当延迟属性被调用时自动创建Session进行获取。可见如果有多个延迟属性需要被使用时，会造成多次创建Session，此时可以标注为AutoLazy(false)或不标注，然后采用initialze方法手动一次性加载需要的属性
@AutoLazy
@EqualsAndHashCode(callSuper = false)
public class labelbind implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "limitid",type = IdType.INPUT)
    private Integer limitid;

    private Integer labelid;

    private Integer patientid;

    private String expiration;

    private Integer permanent;

    private Integer limitstate;
//
    private Labels labels;
}
